import Vue from 'vue'
import Vuex from 'vuex'
// 引入小仓库
import home from './home/index.js'
import search from './search/index.js'
import detail from './detail/index.js'
import shopcait from './shopcart/index.js'
import user from './user/index.js'
import trade from './Trade/index.js'

// 需要使用vuex插件一次
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    shopcait,
    user,
    trade
  }
})